import request from '@/utils/request'

// 查询爱回收配置列表
export function listAhsconfig(query) {
  return request({
    url: '/system/ahsconfig/list',
    method: 'get',
    params: query
  })
}

// 查询爱回收配置详细
export function getAhsconfig(id) {
  return request({
    url: '/system/ahsconfig/' + id,
    method: 'get'
  })
}

// 新增爱回收配置
export function addAhsconfig(data) {
  return request({
    url: '/system/ahsconfig',
    method: 'post',
    data: data
  })
}

// 修改爱回收配置
export function updateAhsconfig(data) {
  return request({
    url: '/system/ahsconfig',
    method: 'put',
    data: data
  })
}

// 删除爱回收配置
export function delAhsconfig(id) {
  return request({
    url: '/system/ahsconfig/' + id,
    method: 'delete'
  })
}
